<?php
namespace Nawa\MedicalStudy\MedicalCenter\Patient;
/**
 * Monitoring of Patient of Medical Center Partner.
 *
 * It represant a Patient Monitoring, to keep a track of what happens
 *
 * @author Xavier VILAIN
 * @package Nawa\MedicalStudy\MedicalCenter\Patient
 * @license
 *
 * @property int	$msid			Medical Study Id
 * @property int	$mcid			Medical Center Id
 * @property int 	$patientid		Patient Id (Unique in a Medical Center Only)
 * @property int 	$monitoringid	Id of the monitoring
 * @property date 	$monitoring_date Monitoring Date
 * @property int	$author			Author of the monitoring
 * @property string $comments 		Comments
 */
class Monitoring extends \Fox\Object {

	/**
	 * Link to Medical Study
	 */
	const LINK_MEDICAL_STUDY = 'medicalStudy';

	/**
	 * Link to Medical Center
	 */
	const LINK_MEDICAL_CENTER = 'medicalCenter';

	/**
	 * Link to Patient
	 */
	const LINK_PATIENT = 'patient';
	
	/**
	 * Link to Documents
	 */
	const LINK_DOCUMENTS = 'documents';

}
\Fox\Dao::infos(Monitoring::className(),new \Fox\Object\Info('ms_mc_patient_monitorings', \Fox\Databases::DB_APP)
)->addAutoIncrementField('monitoringid');